package com.woniu;

import com.woniu.pojo.Comment;
import com.woniu.vo.CommentVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Date;
import java.util.List;

@FeignClient(value = "comment-service",path = "/comment")
public interface CommentFeignClient {

    @ApiOperation("查询门店的评分")
    @GetMapping("/shop")
    public Result<List<CommentVo>> getShopAvgComment(Date date);
}
